Added onedark.vim as colorscheme. Refactor of init.vim and symlink to autostart plugins

This commit is contained in:
Claudio Maggioni 2018-12-18 22:22:11 +01:00
parent a8cf4801e9
commit 7fde1dbc51
5 changed files with 47 additions and 22 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
.netrwhist*
*~

3
.gitmodules vendored
View file

@ -7,3 +7,6 @@
[submodule "pack/plugins/start/vim-racket"] [submodule "pack/plugins/start/vim-racket"]
path = pack/plugins/start/vim-racket path = pack/plugins/start/vim-racket
url = https://github.com/wlangstroth/vim-racket.git url = https://github.com/wlangstroth/vim-racket.git
[submodule "pack/plugins/opt/onedark.vim"]
path = pack/plugins/opt/onedark.vim
url = https://github.com/joshdick/onedark.vim

1
autostart Symbolic link
View file

@ -0,0 +1 @@
pack/plugins/start/

View file

@ -1,18 +1,53 @@
" vim: set tw=80 :
" SETTINGS
" set relative line numbers " set relative line numbers
set number relativenumber set number relativenumber
" set highlighting and continous search " set highlighting and continous search
set hlsearch incsearch set hlsearch incsearch
" clear search with F2
nnoremap <F2> noh
" show n-column limiter when textwidth is set " show n-column limiter when textwidth is set
set colorcolumn=+1 set colorcolumn=+1
" prevent terminal buffers to be closed when changing buffer " prevent terminal buffers to be closed when changing buffer
autocmd TermOpen * set bufhidden=hide autocmd TermOpen * set bufhidden=hide
" remove line numbers to terminale
autocmd TermOpen * set nornu nonu
" set autoindent on`
set autoindent
" Make :find work on all files in :pwd
set path+=**
" ADDITIONAL COMMANDS
" make escape work in terminal and send ESC to terminal with C-Esc " make escape work in terminal and send ESC to terminal with C-Esc
tnoremap <Esc> <C-\><C-n> tnoremap <Esc> <C-\><C-n>
tnoremap <C-Esc> <Esc> tnoremap <C-Esc> <Esc>
" VIM-FISH " clear search with F2
nnoremap <F2> noh
" clear trailing spaces with F3
nnoremap <F3> :%s/\s *$//g<CR>
" show Vim's true competitor with Ctrl-F1
nnoremap <F4> :!open https://youtu.be/jn40Ugz0vuk<CR><CR>
" COLORSCHEME
" set colorscheme to onedark.vim for nvim and airline
packadd! onedark.vim
colorscheme onedark
let g:airline_theme='onedark'
" PACKAGES
" vim-fish setup
syntax enable syntax enable
filetype plugin indent on filetype plugin indent on
" Set up :make to use fish for syntax checking. " Set up :make to use fish for syntax checking.
@ -27,20 +62,3 @@ else
endif endif
endif endif
" Only do this part when compiled with support for autocommands.
if has("autocmd")
" Put these in an autocmd group, so that we can delete them easily.
augroup vimrcEx
au!
" For all text files set 'textwidth' to 78 characters.
autocmd FileType text setlocal textwidth=78
augroup END
else
set autoindent " always set autoindenting on
endif " has("autocmd")

@ -0,0 +1 @@
Subproject commit 2a6155a255e83bb930da2627dce4259a3fe4ce3a