Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vim-config
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mtrame
vim-config
Commits
0a4e331f
Commit
0a4e331f
authored
5 years ago
by
mtrame
Browse files
Options
Downloads
Patches
Plain Diff
added autocomplete and syntastic
parent
01c34e05
Branches
master
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.vimrc
+58
-1
58 additions, 1 deletion
.vimrc
with
58 additions
and
1 deletion
.vimrc
+
58
−
1
View file @
0a4e331f
...
...
@@ -43,7 +43,6 @@ syntax on
" try to quit without saving, and swap files will keep you safe if your computer
" crashes.
set
hidden
" Note that not everyone likes working this way (with the hidden option).
" Alternatives include using tabs or split windows instead of re-using the same
" window as mentioned above, and/or either of the following options:
...
...
@@ -156,8 +155,66 @@ map Y y$
" next search
nnoremap
<
C
-
L
>
:
nohl
<
CR
><
C
-
L
>
imap
<
Tab
>
<
C
-
p
>
" pathogen.vim
" see github for install on other machines
execute
pathogen#infect
()
"------------------------------------------------------------
" Specify a directory for plugins
" - For Neovim: ~/.local/share/nvim/plugged
" - Avoid using standard Vim directory names like 'plugin'
call
plug#begin
(
'~/.vim/plugged'
)
" Make sure you use single quotes
" Shorthand notation; fetches https://github.com/junegunn/vim-easy-align
Plug
'junegunn/vim-easy-align'
" Any valid git URL is allowed
Plug
'https://github.com/junegunn/vim-github-dashboard.git'
" Multiple Plug commands can be written in a single line using | separators
Plug
'SirVer/ultisnips'
|
Plug
'honza/vim-snippets'
" On-demand loading
Plug
'scrooloose/nerdtree'
,
{
'on'
:
'NERDTreeToggle'
}
Plug
'tpope/vim-fireplace'
,
{
'for'
:
'clojure'
}
" Using a non-master branch
Plug
'rdnetto/YCM-Generator'
,
{
'branch'
:
'stable'
}
" Using a tagged release; wildcard allowed (requires git 1.9.2 or above)
Plug
'fatih/vim-go'
,
{
'tag'
:
'*'
}
" Plugin options
Plug
'nsf/gocode'
,
{
'tag'
:
'v.20150303'
,
'rtp'
:
'vim'
}
" Plugin outside ~/.vim/plugged with post-update hook
Plug
'junegunn/fzf'
,
{
'dir'
:
'~/.fzf'
,
'do'
:
'./install --all'
}
" Unmanaged plugin (manually installed and updated)
Plug
'~/my-prototype-plugin'
" Initialize plugin system
" Start up NERDTree when no file is specified
autocmd
StdinReadPre
*
let
s:std_in
=
1
autocmd
VimEnter
*
if
argc
()
==
0
&&
!
exists
(
"s:std_in"
)
|
NERDTree
|
endif
" Syntastic reccomended settings
"set statusline+=%#warningmsg#
"set statusline+=%{SyntasticStatuslineFlag()}
"set statusline+=%*
let
g:syntastic_always_populate_loc_list
=
1
let
g:syntastic_auto_loc_list
=
1
let
g:syntastic_check_on_open
=
1
let
g:syntastic_check_on_wq
=
0
"folding settings
set
foldmethod
=
indent
"
fold
based
on
indent
set
foldnestmax
=
10
"deepest
fold
is
10
levels
set
nofoldenable
"dont
fold
by default
set
foldlevel
=
1
"this
is
just what
i
use
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment