aboutsummaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
authorCabergs Charles <cacharle@w-r4-p5.s19.be>2019-10-10 10:15:06 +0200
committerCabergs Charles <cacharle@w-r4-p5.s19.be>2019-10-10 10:15:06 +0200
commitfe28ebe81f56832c832e5ca144b429bc49394cf3 (patch)
treed8c75b452f48234a211348844b41248799b0ebf3 /.vimrc
parent90042125ca7458289a52294294fd5908574769f1 (diff)
parent466c8a6b31a98a461b250743718084d79f67f640 (diff)
downloaddotfiles-fe28ebe81f56832c832e5ca144b429bc49394cf3.tar.gz
dotfiles-fe28ebe81f56832c832e5ca144b429bc49394cf3.tar.bz2
dotfiles-fe28ebe81f56832c832e5ca144b429bc49394cf3.zip
Merge branch 'master' into s19
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc21
1 files changed, 18 insertions, 3 deletions
diff --git a/.vimrc b/.vimrc
index 91a1c5d..9d7a85e 100644
--- a/.vimrc
+++ b/.vimrc
@@ -11,13 +11,12 @@ let mapleader = ' '
syntax enable
set hidden
set noswapfile
-filetype plugin on " add specific rules for certain file type
-filetype plugin indent on
+set nocompatible
+filetype plugin indent on " add specific rules for certain file type
set number relativenumber
" browse list with tab
set wildmode=longest,list,full
set wildmenu
-set nocompatible
set path+=** " for recursive :find
" more intuitif split opening
set splitbelow
@@ -52,6 +51,9 @@ set scrolloff=2 " 2 line above scroll
set showcmd
set cursorline " highlight current line
set noshowmode " unnecessary with status bar"
+
+set autoread " reload files when changes happen outside vim
+
" where to place the .swp files
set backupdir=~/.vim-tmp,~/.tmp,~/tmp,~/var/tmp
set directory=~/.vim-tmp,~/.tmp,~/tmp,~/var/tmp
@@ -119,3 +121,16 @@ imap jj <ESC>
" remove visual mode keybinding
map Q <ESC>
+
+" c source and header files comment formats for vim-commentary
+" autocmd Filetype c setlocal commentstring=// %s
+" autocmd Filetype h setlocal commentstring=// %s
+
+set encoding=utf-8
+
+set textwidth=89 " when line wrap occurs
+
+" incsearch mapping
+map / <Plug>(incsearch-forward)
+map ? <Plug>(incsearch-backward)
+map g/ <Plug>(incsearch-stay)