From c9cc7537223f45f21a66528f7b9349cbcaea3f0f Mon Sep 17 00:00:00 2001 From: katherine Date: Wed, 4 Aug 2021 02:05:37 -0700 Subject: vimrc bufflist with nomore --- .vimrc | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/.vimrc b/.vimrc index 4db2b7c..05d9726 100644 --- a/.vimrc +++ b/.vimrc @@ -222,7 +222,18 @@ nnoremap fr zR "buffer-handling nnoremap :bn nnoremap :bp -nnoremap :buffers:b + +fun! s:bufflist() + if &more + set nomore + execute "buffers" + set more + elseif + execute "buffers" + endif +endfun + +nnoremap :call bufflist():b "copy words from above and below the cursor inoremap pumvisible() ? "\" : matchstr(getline(line('.')-1), '\%' . virtcol('.') . 'v\%(\k\+\\|.\)') @@ -278,13 +289,12 @@ if has('autocmd') au FileType css call settings_css() au FileType d call settings_c() au FileType elixir call settings_elixir() - au FileType javascript call settings_c() - au FileType tex call settings_tex() au FileType go call settings_c() au FileType haskell call settings_haskell() au FileType html call settings_html() au FileType xhtml call settings_html() au FileType ia64 call settings_ia64() + au FileType javascript call settings_javascript() au FileType make call settings_script() au FileType mail call settings_mail() au FileType markdown call settings_markdown() @@ -300,6 +310,7 @@ if has('autocmd') au FileType rust call settings_rust() au FileType scss call settings_css() au FileType sh call settings_script() + au FileType tex call settings_tex() au FileType text call settings_text() au FileType vim call settings_vim() au FileType yaml call settings_script2() @@ -450,6 +461,16 @@ fun! s:settings_ia64() nnoremap -_ O*/hhi/* endfun +fun! s:settings_javascript() + call settings_c() + "settings + setlocal shiftwidth=2 + setlocal tabstop=2 + setlocal softtabstop=2 + setlocal expandtab + "mappings +endfun + fun! s:settings_markdown() "settings setlocal shiftwidth=4 -- cgit v1.2.3