Skip to content

Commit

Permalink
Enable nailgun with VimClojure
Browse files Browse the repository at this point in the history
  • Loading branch information
samn committed Sep 28, 2012
1 parent 4b52547 commit 163ed4c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
4 changes: 3 additions & 1 deletion .lein/profiles.clj
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
{:user {:plugins [[lein-pprint "1.1.1"]
[lein-midje "2.0.0-SNAPSHOT"]]}}
[lein-midje "2.0.0-SNAPSHOT"]
[lein-tarsier "0.9.3"]]
:vimclojure-opts {:repl true}}}
26 changes: 12 additions & 14 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ set backup " make backup files
" of the swap files to avoid conflicts
set backupdir=~/.vim/backup//
set directory=~/.vim/tmp// " directory to place swap files in
set tags+=~/.bctags
set tags+=~/.jdktags

"general{
"when joining lines, leave cursor where it is
Expand Down Expand Up @@ -111,10 +109,6 @@ map <C-l> <C-W>l
"nmap H :s/\v(\S{8})/\1 /g<CR>:s/\v((\S{8} ){8})/\1<C-V><CR>/g<CR>:nohl<CR>
"map <space> /
"map <c-space> ?
"p4 convenience bindings
nnoremap @p4a :!p4 add %:e
nnoremap @p4e :!p4 edit %:e
nnoremap @p4d :!p4 diff %

" write current file with root privileges
cmap w!! w !sudo tee % > /dev/null
Expand All @@ -124,14 +118,14 @@ cmap w!! w !sudo tee % > /dev/null
au FileType python setlocal define=^\s*\\(def\\\\/class\\)

" Eclim stuff
let g:EclimJavaImportPackageSeparationLevel = 2
let g:EclimXmlValidate = 0
function JavaImports()
:JavaImportMissing
:JavaImportClean
:JavaImportSort
endfunction
nnoremap <C-i> <esc>:call JavaImports()<cr>
" let g:EclimJavaImportPackageSeparationLevel = 2
" let g:EclimXmlValidate = 0
" function JavaImports()
" :JavaImportMissing
" :JavaImportClean
" :JavaImportSort
" endfunction
" nnoremap <C-i> <esc>:call JavaImports()<cr>

" Supertab settings
let g:SuperTabDefaultCompletionType = "context"
Expand All @@ -143,6 +137,10 @@ let vimclojure#HighlightBuiltins=1
let vimclojure#HighlightContrib=1
let vimclojure#DynamicHighlighting=1
let vimclojure#ParenRainbow=1
let vimclojure#FuzzyIndent=1
let vimclojure#WantNailgun=1
let vimclojure#SplitPos="bottom"
let vimclojure#SplitSize=10
au Bufenter,Bufnewfile *.clj set shiftwidth=2 softtabstop=2 syntax=clojure

" Two spaces for coffeescript please
Expand Down

0 comments on commit 163ed4c

Please sign in to comment.