diff options
| author | Manuel Traut <manut@ford.mecka.net> | 2019-08-07 22:47:19 +0200 |
|---|---|---|
| committer | Manuel Traut <manut@ford.mecka.net> | 2019-08-07 22:47:19 +0200 |
| commit | 120eccbfa839a0723f6ffeb9b80742bc960a3d41 (patch) | |
| tree | cb3594a3e068fc89dc55a34a8302fb7887bc83bc /.vimrc | |
initial version from ford
Signed-off-by: Manuel Traut <manut@ford.mecka.net>
Diffstat (limited to '.vimrc')
| -rw-r--r-- | .vimrc | 56 |
1 files changed, 56 insertions, 0 deletions
@@ -0,0 +1,56 @@ +set tabstop=2 +set pastetoggle=<f8> +set tw=80 +syntax on +set ai +set si +set noexpandtab +set softtabstop=2 +set shiftwidth=2 +set shiftround +set autoindent +set lsp=0 " space it out a little more (easier to read) +set wildmenu " turn on wild menu +set ruler " Always show current positions along the bottom +set cmdheight=2 " the command bar is 2 high +"set number " turn on line numbers +set lz " do not redraw while running macros (much faster) (LazyRedraw) +set incsearch +set laststatus=2 +set smarttab " use tabs at the start of a line, spaces elsewhere +set background=dark +colorscheme solarized + +" lso colour real TAB areas blue +highlight SomethingBad ctermbg=lightgreen +match SomethingBad /.\%>80v\|\s\+$/ +highlight TabChar ctermbg=lightblue +2match TabChar /\t/ + +"set spelllang=de_de spell +set spelllang=en_us spell +set nospell + +"look for ctags in upper directories +"let tag_dir=getcwd() +"if match(tag_dir, "^/") == 0 +" let end_dir='/' +" while !filereadable(tag_dir."/tags") && tag_dir!=$HOME && tag_dir!=end_dir +" let tag_dir = substitute(tag_dir, '/[^/]\+$', "", "") +" endwhile +" if filereadable(tag_dir."/tags") +" exe "set tags+=".tag_dir."/tags" +"endif +"elseif match(tag_dir, "^[a-zA-Z]:[\\/]") == 0 +" let end_dir=tag_dir[0].tag_dir[1] +" while !filereadable(tag_dir."\\tags") && tag_dir!=end_dir +" let tag_dir = substitute(tag_dir, '\\[^\\]\+$', "", "") +" endwhile +" if filereadable(tag_dir."\\tags") +" exe "set tags+=".tag_dir."\\tags" +" endif +"endif + +imap <C-r> Reviewed-by: Manuel Traut <manut@linutronix.de><esc>o +imap <C-x> Signed-off-by: Manuel Traut <manut@linutronix.de><esc>o +imap <C-t> ----<S-Enter>Linutronix GmbH<S-Enter>Bahnhofstr. 3<S-Enter>88690 Uhldingen<S-Enter><S-Enter>fon: +49 7556 25 999 16<S-Enter>fax: +49 7556 25 999 99<esc>o |
