From 5cf78519355481268494de111ecb1f86e424b4f3 Mon Sep 17 00:00:00 2001 From: Sonny Date: Sat, 27 May 2017 07:46:47 +0200 Subject: [PATCH] Remove trailingspaces --- vim/.vimrc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/vim/.vimrc b/vim/.vimrc index cd43237..56b9816 100755 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -19,7 +19,7 @@ syntax enable command! MakeTags !ctags -R . " 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 " zo to open folds, zc to close @@ -60,7 +60,7 @@ set autochdir set hls "Search as characters are entered -set incsearch +set incsearch "Line for linewrapping set colorcolumn=80 @@ -83,6 +83,9 @@ set cursorline "Activate statusbar set laststatus=2 +"Remove trailing spaces on save +autocmd BufWritePre * :%s/\s\+$//e + "Copy to clipboard vnoremap y "+y vnoremap x "+x @@ -93,7 +96,7 @@ vnoremap c "+c " Nerdtree map :NERDTreeToggle -" Airline +" Airline let g:airline_theme = 'distinguished' let g:airline_section_y = '%{hostname()}' let g:airline_section_b = '%{fugitive#statusline()}'