no (bugged) smartindent, add leaders along with F-keys
This commit is contained in:
parent
07020825f8
commit
edf02c9319
1 changed files with 3 additions and 8 deletions
11
.vimrc
11
.vimrc
|
|
@ -18,16 +18,11 @@ set textwidth=120
|
||||||
set wrap " auto wrap line view, but not text itself
|
set wrap " auto wrap line view, but not text itself
|
||||||
|
|
||||||
filetype indent on " activates indenting for files
|
filetype indent on " activates indenting for files
|
||||||
set autoindent " automatic indentation
|
|
||||||
set smartindent
|
|
||||||
set softtabstop=4 " width of a tab
|
set softtabstop=4 " width of a tab
|
||||||
set tabstop=4
|
set tabstop=4
|
||||||
set shiftwidth=4 " width of the indentation
|
set shiftwidth=4 " width of the indentation
|
||||||
set expandtab
|
set expandtab
|
||||||
|
|
||||||
" don't un-indent hashes at the BOL
|
|
||||||
inoremap # #
|
|
||||||
|
|
||||||
set ignorecase " case-insentive search by default
|
set ignorecase " case-insentive search by default
|
||||||
set smartcase " search case-sensitive if there is an upper-case letter
|
set smartcase " search case-sensitive if there is an upper-case letter
|
||||||
set gdefault " when replacing, use /g by default
|
set gdefault " when replacing, use /g by default
|
||||||
|
|
@ -54,7 +49,7 @@ set colorcolumn=80,120 " highligth the 80th and 120th column
|
||||||
" No need to prefix them with "* or "+
|
" No need to prefix them with "* or "+
|
||||||
set clipboard=unnamed
|
set clipboard=unnamed
|
||||||
|
|
||||||
" New split plaed below
|
" New split placed below
|
||||||
set splitbelow
|
set splitbelow
|
||||||
" New vsplit placed right
|
" New vsplit placed right
|
||||||
set splitright
|
set splitright
|
||||||
|
|
@ -219,9 +214,11 @@ map <F10> <Plug>TaskList
|
||||||
" side pane of class and functions
|
" side pane of class and functions
|
||||||
"map <F11> :TlistToggle<cr>
|
"map <F11> :TlistToggle<cr>
|
||||||
nmap <F11> :TagbarToggle<CR>
|
nmap <F11> :TagbarToggle<CR>
|
||||||
|
nnoremap <leader>b :TagbarToggle<CR>
|
||||||
|
|
||||||
" side pane of files
|
" side pane of files
|
||||||
map <F12> :NERDTreeToggle<cr>
|
map <F12> :NERDTreeToggle<cr>
|
||||||
|
nnoremap <leader>t :NERDTreeToggle<cr>
|
||||||
|
|
||||||
" configure tags - add additional tags here or comment out not-used ones
|
" configure tags - add additional tags here or comment out not-used ones
|
||||||
set tags+=~/.vim/tags/cpp
|
set tags+=~/.vim/tags/cpp
|
||||||
|
|
@ -250,5 +247,3 @@ set completeopt=menuone,menu,longest,preview
|
||||||
:runtime plugins/bclose.vim
|
:runtime plugins/bclose.vim
|
||||||
nmap :bc <Plug>Kwbd
|
nmap :bc <Plug>Kwbd
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue