Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <pre><code>syntax on set cindent set ts=4 set sw=4 set backspace=2 set laststatus=2 set nohlsearch set modeline set modelines=3 set ai map Q gq set vb t_vb= set nowrap set ss=5 set is set scs set ru map &lt;F2&gt; &lt;Esc&gt;:w&lt;CR&gt; map! &lt;F2&gt; &lt;Esc&gt;:w&lt;CR&gt; map &lt;F10&gt; &lt;Esc&gt;:qa&lt;CR&gt; map! &lt;F10&gt; &lt;Esc&gt;:qa&lt;CR&gt; map &lt;F9&gt; &lt;Esc&gt;:wqa&lt;CR&gt; map! &lt;F9&gt; &lt;Esc&gt;:wqa&lt;CR&gt; inoremap &lt;s-up&gt; &lt;Esc&gt;&lt;c-w&gt;W&lt;Ins&gt; inoremap &lt;s-down&gt; &lt;Esc&gt;&lt;c-w&gt;w&lt;Ins&gt; nnoremap &lt;s-up&gt; &lt;c-w&gt;W nnoremap &lt;s-down&gt; &lt;c-w&gt;w " Fancy middle-line &lt;CR&gt; inoremap &lt;C-CR&gt; &lt;Esc&gt;o nnoremap &lt;C-CR&gt; o " This is the way I like my quotation marks and various braces inoremap '' ''&lt;Left&gt; inoremap "" ""&lt;Left&gt; inoremap () ()&lt;Left&gt; inoremap &lt;&gt; &lt;&gt;&lt;Left&gt; inoremap {} {}&lt;Left&gt; inoremap [] []&lt;Left&gt; inoremap () ()&lt;Left&gt; " Quickly set comma or semicolon at the end of the string inoremap ,, &lt;End&gt;, inoremap ;; &lt;End&gt;; au FileType python inoremap :: &lt;End&gt;: au FileType perl,python set foldlevel=0 au FileType perl,python set foldcolumn=4 au FileType perl,python set fen au FileType perl set fdm=syntax au FileType python set fdm=indent au FileType perl,python set fdn=4 au FileType perl,python set fml=10 au FileType perl,python set fdo=block,hor,mark,percent,quickfix,search,tag,undo,search au FileType perl,python abbr sefl self au FileType perl abbr sjoft shift au FileType perl abbr DUmper Dumper function! ToggleNumberRow() if !exists("g:NumberRow") || 0 == g:NumberRow let g:NumberRow = 1 call ReverseNumberRow() else let g:NumberRow = 0 call NormalizeNumberRow() endif endfunction " Reverse the number row characters function! ReverseNumberRow() " map each number to its shift-key character inoremap 1 ! inoremap 2 @ inoremap 3 # inoremap 4 $ inoremap 5 % inoremap 6 ^ inoremap 7 &amp; inoremap 8 * inoremap 9 ( inoremap 0 ) inoremap - _ inoremap 90 ()&lt;Left&gt; " and then the opposite inoremap ! 1 inoremap @ 2 inoremap # 3 inoremap $ 4 inoremap % 5 inoremap ^ 6 inoremap &amp; 7 inoremap * 8 inoremap ( 9 inoremap ) 0 inoremap _ - endfunction " DO the opposite to ReverseNumberRow -- give everything back function! NormalizeNumberRow() iunmap 1 iunmap 2 iunmap 3 iunmap 4 iunmap 5 iunmap 6 iunmap 7 iunmap 8 iunmap 9 iunmap 0 iunmap - "------ iunmap ! iunmap @ iunmap # iunmap $ iunmap % iunmap ^ iunmap &amp; iunmap * iunmap ( iunmap ) iunmap _ inoremap () ()&lt;Left&gt; endfunction "call ToggleNumberRow() nnoremap &lt;M-n&gt; :call ToggleNumberRow()&lt;CR&gt; " Add use &lt;CWORD&gt; at the top of the file function! UseWord(word) let spec_cases = {'Dumper': 'Data::Dumper'} let my_word = a:word if has_key(spec_cases, my_word) let my_word = spec_cases[my_word] endif let was_used = search("^use.*" . my_word, "bw") if was_used &gt; 0 echo "Used already" return 0 endif let last_use = search("^use", "bW") if 0 == last_use last_use = search("^package", "bW") if 0 == last_use last_use = 1 endif endif let use_string = "use " . my_word . ";" let res = append(last_use, use_string) return 1 endfunction function! UseCWord() let cline = line(".") let ccol = col(".") let ch = UseWord(expand("&lt;cword&gt;")) normal mu call cursor(cline + ch, ccol) endfunction function! GetWords(pattern) let cline = line(".") let ccol = col(".") call cursor(1,1) let temp_dict = {} let cpos = searchpos(a:pattern) while cpos[0] != 0 let temp_dict[expand("&lt;cword&gt;")] = 1 let cpos = searchpos(a:pattern, 'W') endwhile call cursor(cline, ccol) return keys(temp_dict) endfunction " Append the list of words, that match the pattern after cursor function! AppendWordsLike(pattern) let word_list = sort(GetWords(a:pattern)) call append(line("."), word_list) endfunction nnoremap &lt;F7&gt; :call UseCWord()&lt;CR&gt; " Useful to mark some code lines as debug statements function! MarkDebug() let cline = line(".") let ctext = getline(cline) call setline(cline, ctext . "##_DEBUG_") endfunction " Easily remove debug statements function! RemoveDebug() %g/#_DEBUG_/d endfunction au FileType perl,python inoremap &lt;M-d&gt; &lt;Esc&gt;:call MarkDebug()&lt;CR&gt;&lt;Ins&gt; au FileType perl,python inoremap &lt;F6&gt; &lt;Esc&gt;:call RemoveDebug()&lt;CR&gt;&lt;Ins&gt; au FileType perl,python nnoremap &lt;F6&gt; :call RemoveDebug()&lt;CR&gt; " end Perl settings nnoremap &lt;silent&gt; &lt;F8&gt; :TlistToggle&lt;CR&gt; inoremap &lt;silent&gt; &lt;F8&gt; &lt;Esc&gt;:TlistToggle&lt;CR&gt;&lt;Esc&gt; function! AlwaysCD() if bufname("") !~ "^scp://" &amp;&amp; bufname("") !~ "^sftp://" &amp;&amp; bufname("") !~ "^ftp://" lcd %:p:h endif endfunction autocmd BufEnter * call AlwaysCD() function! DeleteRedundantSpaces() let cline = line(".") let ccol = col(".") silent! %s/\s\+$//g call cursor(cline, ccol) endfunction au BufWrite * call DeleteRedundantSpaces() set nobackup set nowritebackup set cul colorscheme evening autocmd FileType python set formatoptions=wcrq2l autocmd FileType python set inc="^\s*from" autocmd FileType python so /usr/share/vim/vim72/indent/python.vim autocmd FileType c set si autocmd FileType mail set noai autocmd FileType mail set ts=3 autocmd FileType mail set tw=78 autocmd FileType mail set shiftwidth=3 autocmd FileType mail set expandtab autocmd FileType xslt set ts=4 autocmd FileType xslt set shiftwidth=4 autocmd FileType txt set ts=3 autocmd FileType txt set tw=78 autocmd FileType txt set expandtab " Move cursor together with the screen noremap &lt;c-j&gt; j&lt;c-e&gt; noremap &lt;c-k&gt; k&lt;c-y&gt; " Better Marks nnoremap ' ` </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload