Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

little bits

  • Loading branch information...
commit 711eb4a3589c545389971f2ac37943ec758bda03 1 parent dd805a6
@romainl authored
View
1  .gitignore
@@ -1,2 +1,3 @@
+/.VimballRecord
/.netrwbook
/.netrwhist
View
7 after/ftplugin/css.vim
@@ -1,7 +1,2 @@
-nnoremap <buffer> <leader>g I/* <Esc>A */<Esc>yyp0llv$r-$hc$*/<Esc>yykPjj
-
-vnoremap <buffer> ?? <Esc>'<O/*<Esc>'>o*/<Esc>
+vnoremap <buffer> ?? <Esc>'<yyP"_C/*<Esc>'>yyp"_C*/<Esc>
vnoremap <buffer> !! <Esc>'<"_dd'>"_dd'<
-
-setlocal foldmethod=marker
-setlocal foldmarker={,}
View
2  after/ftplugin/html.vim
@@ -1,4 +1,4 @@
-vnoremap <buffer> ?? <Esc>'<O<!--<Esc>'>o--><Esc>
+vnoremap <buffer> ?? <Esc>'<yyP"_C<!--<Esc>'>yyp"_C--><Esc>
vnoremap <buffer> !! <Esc>'<"_dd'>"_dd'<
nnoremap <buffer> <leader>& :call Entities()<CR>
View
8 after/ftplugin/javascript.vim
@@ -1,6 +1,8 @@
nnoremap <buffer> <leader>g I// <Esc>A //<Esc>yyp0llv$hhhr-yykPjj
-inoremap <buffer> <Esc> <Esc>:Tagit<cr>
+if exists(':Tagit') == 2
+ inoremap <buffer> <Esc> <Esc>:Tagit<cr>
+endif
-vnoremap <buffer> !! <Esc>'<O/*<Esc>'>o*/<Esc>
-vnoremap <buffer> ?? <Esc>'<"_dd'>"_dd'<
+vnoremap <buffer> ?? <Esc>'<yyP"_C/*<Esc>'>yyp"_C*/<Esc>
+vnoremap <buffer> !! <Esc>'<"_dd'>"_dd'<
View
6 after/ftplugin/php.vim
@@ -1,6 +1,8 @@
nnoremap <buffer> <leader>g I// <Esc>A //<Esc>yyp0llv$hhhr-yykPjj
-inoremap <buffer> <Esc> <Esc>:Tagit<cr>
+if exists(':Tagit') == 2
+ inoremap <buffer> <Esc> <Esc>:Tagit<cr>
+endif
-vnoremap <buffer> ?? <Esc>'<O/*<Esc>'>o*/<Esc>
+vnoremap <buffer> ?? <Esc>'<yyP"_C/*<Esc>'>yyp"_C*/<Esc>
vnoremap <buffer> !! <Esc>'<"_dd'>"_dd'<
View
18 vimrc
@@ -159,12 +159,12 @@ nnoremap gb :buffers<CR>:sb<Space>
cnoremap <C-a> <Home>
cnoremap <C-e> <End>
-inoremap {<CR> {<CR>}<C-o>==<C-o>O
-inoremap {; {<CR>};<C-o>==<C-o>O
-inoremap <C-CR> <CR><C-o>==<C-o>O
+inoremap {<CR> {<CR>}<C-o>==<C-o>O
+inoremap {; {<CR>};<C-o>==<C-o>O
+inoremap <leader><CR> <CR><C-o>==<C-o>O
inoremap <leader>; <C-o>m`<C-o>A;<C-o>``
-nnoremap <silent> <leader>; :s/$/;<CR>
+nnoremap <silent> <leader>; m`A;<Esc>``
nnoremap <leader>k :m-2<CR>==
nnoremap <leader>j :m+<CR>==
@@ -197,11 +197,11 @@ nnoremap <leader>o *Ncgn
nnoremap <leader>vp :execute "w !vpaste ft=".&ft<CR>
xnoremap <leader>vp <ESC>:execute "'<,'>w !vpaste ft=".&ft<CR>
-for char in [ "_", ".", ":", ",", ";", "<bar>", "/", "<bslash>", "*" ]
- execute "xnoremap i" . char . " :<C-U>silent!normal!T" . char . "vt" . char . "<CR>"
- execute "onoremap i" . char . " :normal vi" . char . "<CR>"
- execute "xnoremap a" . char . " :<C-U>silent!normal!F" . char . "vf" . char . "<CR>"
- execute "onoremap a" . char . " :normal va" . char . "<CR>"
+for char in [ '_', '.', ':', ',', ';', '<bar>', '/', '<bslash>', '*', '+' ]
+ execute 'xnoremap i' . char . ' :<C-U>silent!normal!T' . char . 'vt' . char . '<CR>'
+ execute 'onoremap i' . char . ' :normal vi' . char . '<CR>'
+ execute 'xnoremap a' . char . ' :<C-U>silent!normal!F' . char . 'vf' . char . '<CR>'
+ execute 'onoremap a' . char . ' :normal va' . char . '<CR>'
endfor
autocmd FileType vim nnoremap <leader>g I" <Esc>A "<Esc>yyp0lv$hhr"yykPjj
Please sign in to comment.
Something went wrong with that request. Please try again.