Remove trailingspaces
This commit is contained in:
parent
70b2282e89
commit
5cf7851935
1 changed files with 6 additions and 3 deletions
|
|
@ -19,7 +19,7 @@ syntax enable
|
||||||
command! MakeTags !ctags -R .
|
command! MakeTags !ctags -R .
|
||||||
|
|
||||||
" 4 spaces instead of tabs indentation
|
" 4 spaces instead of tabs indentation
|
||||||
set shiftwidth=4 tabstop=4 softtabstop=4 expandtab
|
set shiftwidth=4 tabstop=4 softtabstop=4 expandtab
|
||||||
|
|
||||||
" Fold methods based on indents
|
" Fold methods based on indents
|
||||||
" zo to open folds, zc to close
|
" zo to open folds, zc to close
|
||||||
|
|
@ -60,7 +60,7 @@ set autochdir
|
||||||
set hls
|
set hls
|
||||||
|
|
||||||
"Search as characters are entered
|
"Search as characters are entered
|
||||||
set incsearch
|
set incsearch
|
||||||
|
|
||||||
"Line for linewrapping
|
"Line for linewrapping
|
||||||
set colorcolumn=80
|
set colorcolumn=80
|
||||||
|
|
@ -83,6 +83,9 @@ set cursorline
|
||||||
"Activate statusbar
|
"Activate statusbar
|
||||||
set laststatus=2
|
set laststatus=2
|
||||||
|
|
||||||
|
"Remove trailing spaces on save
|
||||||
|
autocmd BufWritePre * :%s/\s\+$//e
|
||||||
|
|
||||||
"Copy to clipboard
|
"Copy to clipboard
|
||||||
vnoremap y "+y
|
vnoremap y "+y
|
||||||
vnoremap x "+x
|
vnoremap x "+x
|
||||||
|
|
@ -93,7 +96,7 @@ vnoremap c "+c
|
||||||
" Nerdtree
|
" Nerdtree
|
||||||
map <C-e> :NERDTreeToggle<CR>
|
map <C-e> :NERDTreeToggle<CR>
|
||||||
|
|
||||||
" Airline
|
" Airline
|
||||||
let g:airline_theme = 'distinguished'
|
let g:airline_theme = 'distinguished'
|
||||||
let g:airline_section_y = '%{hostname()}'
|
let g:airline_section_y = '%{hostname()}'
|
||||||
let g:airline_section_b = '%{fugitive#statusline()}'
|
let g:airline_section_b = '%{fugitive#statusline()}'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue