X-Git-Url: https://v.licheni.net/stack/conf/vim.git/blobdiff_plain/127ae1b7636b34eb69b0ea27eae6af0e80edf3c5..e54686a810314cde477b4ccaad761dcff4c51a31:/vimrc diff --git a/vimrc b/vimrc index 3cc81e8..9f079ea 100644 --- a/vimrc +++ b/vimrc @@ -37,7 +37,7 @@ set ruler " Always show current positions along the bottom set number " turn on line numbers set lz " do not redraw while running macros (much faster) (LazyRedraw) set hid " you can change buffer without saving -set backspace=2 " make backspace work normal +set backspace=eol,start,indent " make backspace work normal set whichwrap+=<,>,h,l " backspace and cursor keys wrap to set shortmess=atI " shortens messages to avoid 'press a key' prompt set report=0 " tell us when anything is changed via :... @@ -62,6 +62,7 @@ set laststatus=2 " always show the status line " Text Formatting/Layout """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" set fo=tcrqn " See Help (complex) +set ai " autoindent set si " smartindent set tabstop=4 " tab spacing (settings below are just to unify it) set softtabstop=4 " unify @@ -164,6 +165,9 @@ imap :NERDTreeToggle map :TagbarToggle imap :TagbarToggle +" Alt-right/left to navigate forward/backward in the tags stack +map +map """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Autocommands @@ -205,11 +209,6 @@ if has ("autocmd") endif -""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -" Useful abbrevs -""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -iab xdate =strftime("%d/%m/%y %H:%M:%S") - """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " General configs """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" @@ -235,7 +234,7 @@ exec 'set runtimepath+='.vam_install_path.'/vim-addon-manager' let ft_addons = { \ 'always': ['surround', 'checksyntax', 'LargeFile', 'snipmate', 'snipmate-snippets', 'The_NERD_tree', 'SuperTab%1643'], \ 'r': [ 'Screen_vim__gnu_screentmux', 'Vim-R-plugin' ], - \ '^\%(c\|cpp\|javascript\|python\|php\|html\|xml\|r\|sh\|css\|java\|make\|xslt\|vim\)$': [ 'Tagbar', 'checksyntax'], + \ '^\%(c\|cpp\|javascript\|python\|php\|html\|xml\|r\|sh\|css\|java\|make\|xslt\|vim\)$': [ 'Tagbar', 'checksyntax', 'TagHighlight'], \ '^\%(c\|cpp\)$': [ 'clang_complete' ], \ 'python': ['pythoncomplete', 'python_pydoc'], \ 'php': ['phpcomplete', 'PDV_-_phpDocumentor_for_Vim'],