From 5ad0ba7fa90d5e555b49b8ccfb70c7486839c8d3 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Wed, 3 Jan 2018 14:20:23 +0100 Subject: [PATCH] Added `setl number` to most file types --- vimrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vimrc b/vimrc index ceff409..24a7986 100644 --- a/vimrc +++ b/vimrc @@ -533,6 +533,7 @@ endfunc au BufNewFile,BufRead *.vim,*vimrc :call init_vim_file() function! s:init_vim_file() + setl number nnoremap :w:so % nnoremap c A" nnoremap if ofunction! m'()endfunction`'l @@ -555,6 +556,7 @@ au BufNewFile,BufRead *.c,*.cpp,*.h,*.hpp :nnoremap ; m'$a;`' au BufNewFile,BufRead *.rb :call init_ruby_file() function! s:init_ruby_file() + setl number command! -buffer Defines lex MatchingLines("^\\s*def\\>\\s\\+\\zs.*$") | lopen command! -buffer Functions Defines " Alias command! -buffer Methods Defines " Alias @@ -603,6 +605,7 @@ endfunction au BufNewFile,BufRead *.lua :call init_lua_file() function! s:init_lua_file() + setl number command! -buffer Requires call setloclist(0, MatchingLinesDict("\\vrequire\\s*\\(?(([\"'])\\zs.{-}\\ze\\\\@1init_html_file() function! s:init_html_file() + setl number command! -buffer -nargs=1 Tag normal \ i<><m'/>`' nnoremap t ""ciw<""p>m'""p>`'l