Squashed 'vim/' changes from bb3025e..a7a5990

a7a5990 Add c snippet, update vundle
38330c0 Merge branch 'master' of vcs.murgi.de:dotfiles_fabian/vim
6fa8102 Smartcase, new kernel snippet
c9e8778 Finally fix copying to clipboard (hopefully)

git-subtree-dir: vim
git-subtree-split: a7a599024ad06c9533e7b323b386e25e863e2e95
This commit is contained in:
murgi
2017-05-12 11:28:26 +02:00
parent 068d708cf2
commit c18abfb465
3 changed files with 7 additions and 5 deletions

4
.vimrc
View File

@@ -146,6 +146,8 @@ set mouse=a " Mouse control
set incsearch " search while entering set incsearch " search while entering
set hlsearch " highlight matches set hlsearch " highlight matches
nnoremap <Leader>h :set hlsearch!<CR> nnoremap <Leader>h :set hlsearch!<CR>
set ignorecase
set smartcase
" Line wrapping " Line wrapping
set tw=79 " set textwidth of 80 characters set tw=79 " set textwidth of 80 characters
@@ -171,7 +173,7 @@ nmap <Leader>t :call TextWrapToggle()<CR>
"augroup END "augroup END
"Copying "Copying
set clipboard=unnamedplus " Copy/Paste set clipboard=unnamedplus,unnamed " Copy/Paste
" TagBar " TagBar

View File

@@ -1,11 +1,11 @@
snippet dprintk "Printk current func and debug info ..." snippet dprintk "Printk current func and debug info ..."
printk("%s: ${1}\n", __func__${2}); printk("%s:%d:%s: ${1}\n",__FILE__,__LINE__, __FUNCTION__${2});
endsnippet endsnippet
snippet dprint "Printk current func and debug info ..." snippet dprint "Printk current func and debug info ..."
printf("%s: ${1}\n", __func__${2}); printf("%s:%d:%s: ${1}\n",__FILE__,__LINE__, __FUNCTION__${2});
endsnippet endsnippet
snippet dprintf "Printk current func and debug info ..." snippet dprintf "Printk current func and debug info ..."
printf("%s: ${1}\n", __func__${2}); printf("%s:%d:%s: ${1}\n",__FILE__,__LINE__, __FUNCTION__${2});
endsnippet endsnippet