Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1. " allow the . to execute once for each line of a visual selection
  2. vnoremap . :normal .<CR>
  3.  
  4. set linebreak
  5. set shiftwidth=4
  6. set autowrite
  7. " make that backspace key work the way it should
  8. set backspace=indent,eol,start
  9. " do NOT put a carriage return at the end of the last line! if you are programming
  10. " for the web the default will cause http headers to be sent. that's bad.
  11. set binary noeol
  12. set cursorline
  13. set dy=lastline
  14. set foldmethod=indent
  15. set textwidth=84
  16. set grepprg=grep\ -nH\ $*
  17. set ic
  18. set incsearch
  19. set laststatus=2
  20. set ruler
  21. set sc
  22. set shell=bash
  23. set showcmd
  24. " automatically show matching brackets. works like it does in bbedit.
  25. set showmatch
  26. set showmode
  27. set si
  28. set ssl
  29. set sw=4 ts=4
  30. set viminfo='20,<50,s10,h,f1
  31. set wildignore=*.class
  32. set wildmode=list:longest
  33. " turn on the "visual bell" - which is much quieter than the "audio blink"
  34. set vb
  35. syntax on
  36.  
  37.  
  38.  
  39. if has("unix")
  40. cmap %/ <C-R>=expand("%:p:h") . '/'<CR>
  41. else
  42. cmap %/ <C-R>=expand("%:p:h") . '\'<CR>
  43. endif
  44.  
  45. set path=.,/opt/local/bin,/opt/local/sbin,/bin,/sbin,/usr/bin,/usr/sbin,/usr/local/bin,/Users/nathan/Library/bin
  46. abbr myname Nathan Krasnopoler
  47. abbr abtex
  48. \<CR>\documentclass[12pt]{article}
  49. \<CR>\usepackage{setspace}
  50. \<CR>
  51. \<CR>\begin{document}
  52. \<CR>
  53. \<CR>\title{}
  54. \<CR>\author{Nathan Krasnopoler}
  55. \<CR>\date{}
  56. \<CR>\maketitle
  57. \<CR>\doublespace
  58. \<CR>
  59. \<CR>
  60. \<CR>
  61. \<CR>\end{document}
  62. \<Esc>?title{}<CR>wa
  63.  
  64.  
  65. iab abjava
  66. \<CR><Esc>xx;
  67. \<CR>
  68. \<CR>import java.util.Scanner;
  69. \<CR>
  70. \<CR>
  71. \<CR>public class {
  72. \<CR>public static void main( String [] args) {<Esc>==k$hhi
  73.  
  74.  
  75. "if has("gui_running") && system('ps xw | grep "Vim -psn" | grep -vc grep') > 0
  76. "if $SHELL =~ '/\(sh\|csh\|bash\|tcsh\|zsh\)$'
  77. "let s:path = system("echo echo VIMPATH'${PATH}' | $SHELL -l")
  78. "let $PATH = matchstr(s:path, 'VIMPATH\zs.\{-}\ze\n')
  79. "endif
  80. "endif
  81.  
  82. autocmd FileType ruby,eruby set omnifunc=rubycomplete#Complete
  83. "autocmd FileType ruby,eruby let g:rubycomplete_classes_in_global = 1
  84. filetype on
  85. filetype indent on
  86. filetype plugin on
  87. map <D-s> :write<CR>
  88. map s :write<CR>
  89. source ~/.vim/.vim_colemak_custom
  90. set expandtab
  91. set tabstop=8
  92. set softtabstop=4
  93. set shiftwidth=4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement