Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dotfiles
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
Container Registry
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
Sebastian Semmler
dotfiles
Commits
b1c96162
Commit
b1c96162
authored
8 years ago
by
Sebastian Semmler
Browse files
Options
Downloads
Plain Diff
Merge
Merge hukl/master
parents
1b456feb
3a3d0bc9
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitmodules
+7
-0
7 additions, 0 deletions
.gitmodules
.gitmodules.orig
+49
-0
49 additions, 0 deletions
.gitmodules.orig
.vimrc
+10
-9
10 additions, 9 deletions
.vimrc
.vimrc.orig
+101
-0
101 additions, 0 deletions
.vimrc.orig
with
167 additions
and
9 deletions
.gitmodules
+
7
−
0
View file @
b1c96162
...
...
@@ -11,6 +11,10 @@
path = .vim/bundle/ack.vim
url = https://github.com/mileszs/ack.vim.git
[submodule ".vim/bundle/delimitMate"]
path = .vim/bundle/delimitMate
url = https://github.com/Raimondi/delimitMate.git
[submodule ".vim/bundle/nerdcommenter"]
path = .vim/bundle/nerdcommenter
url = https://github.com/scrooloose/nerdcommenter.git
...
...
@@ -42,6 +46,9 @@
[submodule ".vim/bundle/JavaScript-Indent"]
path = .vim/bundle/JavaScript-Indent
url = https://github.com/vim-scripts/JavaScript-Indent.git
[submodule ".vim/bundle/ctrlp.vim"]
path = .vim/bundle/ctrlp.vim
url = https://github.com/ctrlpvim/ctrlp.vim.git
[submodule "dash.vim"]
path = .vim/bundle/dash.vim
url = https://github.com/rizzatti/dash.vim.git
This diff is collapsed.
Click to expand it.
.gitmodules.orig
0 → 100644
+
49
−
0
View file @
b1c96162
# Core
[submodule ".vim/bundle/pathogen"]
path = .vim/bundle/vim-pathogen
url = https://github.com/tpope/vim-pathogen.git
[submodule ".vim/bundle/ack.vim"]
path = .vim/bundle/ack.vim
url = https://github.com/mileszs/ack.vim.git
[submodule ".vim/bundle/nerdcommenter"]
path = .vim/bundle/nerdcommenter
url = https://github.com/scrooloose/nerdcommenter.git
[submodule ".vim/bundle/nerdtree"]
path = .vim/bundle/nerdtree
url = https://github.com/scrooloose/nerdtree.git
[submodule ".vim/bundle/supertab"]
path = .vim/bundle/supertab
url = https://github.com/ervandew/supertab.git
[submodule ".vim/bundle/vimerl"]
path = .vim/bundle/vimerl
url = https://github.com/jimenezrick/vimerl.git
[submodule ".vim/bundle/markdown"]
path = .vim/bundle/vim-markdown
url = https://github.com/tpope/vim-markdown.git
[submodule ".vim/bundle/syntastic"]
path = .vim/bundle/syntastic
url = https://github.com/scrooloose/syntastic.git
[submodule ".vim/bundle/vim-javascript-syntax"]
path = .vim/bundle/vim-javascript-syntax
url = https://github.com/jelera/vim-javascript-syntax.git
[submodule ".vim/bundle/JavaScript-Indent"]
path = .vim/bundle/JavaScript-Indent
url = https://github.com/vim-scripts/JavaScript-Indent.git
<<<<<<< HEAD
[submodule "dash.vim"]
path = .vim/bundle/dash.vim
url = https://github.com/rizzatti/dash.vim.git
=======
[submodule ".vim/bundle/ctrlp.vim"]
path = .vim/bundle/ctrlp.vim
url = https://github.com/ctrlpvim/ctrlp.vim.git
>>>>>>> 3a3d0bc9a3eed99ba5b125b33d8b396da582e96b
This diff is collapsed.
Click to expand it.
.vimrc
+
10
−
9
View file @
b1c96162
set
nocompatible
let
mapleader
=
','
" Initialize Pathogen
runtime
bundle
/vim-pathogen/
autoload/pathogen
.
vim
execute
pathogen#infect
()
...
...
@@ -42,6 +40,9 @@ fun! <SID>StripTrailingWhitespaces()
endfun
autocmd
BufWritePre
*
:
call
<
SID
>
StripTrailingWhitespaces
()
" Close window if last remaining window is NerdTree
autocmd bufenter *
if
(
winnr
(
"$"
)
==
1
&&
exists
(
"b:NERDTree"
)
&&
b:NERDTree
.
isTabTree
())
|
q
|
endif
" Search related settings
set
incsearch
set
hlsearch
...
...
@@ -55,10 +56,6 @@ nnoremap <silent> <C-l> :<C-u>nohlsearch<CR><C-l>
" Disable code folding
set
nofoldenable
" Directories for swp files
set
backupdir
=~
/.vim/
backups
set
directory
=~
/.vim/
backups
" NERDTree configuration
let
NERDTreeIgnore
=[
'\.pyc$'
,
'\.rbc$'
,
'\~$'
]
map
<
Leader
>
n
:
NERDTreeToggle
<
CR
>
...
...
@@ -78,9 +75,6 @@ au BufNewFile,BufRead *.json set ft=javascript
" make Python follow PEP8 ( http://www.python.org/dev/peps/pep-0008/ )
au
FileType
python
set
softtabstop
=
4
tabstop
=
4
shiftwidth
=
4
textwidth
=
79
" allow backspacing over everything in insert mode
set
backspace
=
indent
,
eol
,
start
" ctrp custom ignores
let
g:ctrlp_custom_ignore
=
{
\
'dir'
:
'\.git$\|\.hg$\|\.svn$\|\.eunit$'
,
...
...
@@ -89,3 +83,10 @@ let g:ctrlp_custom_ignore = {
let
g:erlangCheckFile
=
"~/.vim/bundle/vimerl/compiler/erlang_check_file.erl"
let
g:erlangHighlightErrors
=
1
" Use Ag instead of Ack
let
g:ackprg
=
'ag --nogroup --nocolor --column'
" Disable Swap and Backup Files
set
noswapfile
set
nobackup
This diff is collapsed.
Click to expand it.
.vimrc.orig
0 → 100644
+
101
−
0
View file @
b1c96162
set nocompatible
let mapleader=','
" Initialize Pathogen
runtime bundle/vim-pathogen/autoload/pathogen.vim
execute pathogen#infect()
" Enable syntax highlighting
syntax on
filetype plugin indent on
" Colorscheme see https://github.com/hukl/Smyck-Color-Scheme
color smyck
" Add line numbers
set number
set ruler
" Set encoding
set encoding=utf-8
" Whitespace stuff
set nowrap
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
" Show trailing spaces and highlight hard tabs
set list listchars=tab:»·,trail:·
" allow backspacing over everything in insert mode
set backspace=indent,eol,start
" Strip trailing whitespaces on each save
fun! <SID>StripTrailingWhitespaces()
let l = line(".")
let c = col(".")
%s/\s\+$//e
call cursor(l, c)
endfun
autocmd BufWritePre * :call <SID>StripTrailingWhitespaces()
" Close window if last remaining window is NerdTree
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
" Search related settings
set incsearch
set hlsearch
" Map Ctrl+l to clear highlighted searches
nnoremap <silent> <C-l> :<C-u>nohlsearch<CR><C-l>
" Highlight characters behind the 80 chars margin
:au BufWinEnter * let w:m2=matchadd('ColumnMargin', '\%>80v.\+', -1)
" Disable code folding
set nofoldenable
<<<<<<< HEAD
" Directories for swp files
set backupdir=~/.vim/backups
set directory=~/.vim/backups
=======
>>>>>>> 3a3d0bc9a3eed99ba5b125b33d8b396da582e96b
" NERDTree configuration
let NERDTreeIgnore=['\.pyc$', '\.rbc$', '\~$']
map <Leader>n :NERDTreeToggle<CR>
" make uses real tabs
au FileType make set noexpandtab
" Erlang uses 4 spaces
au FileType erlang set softtabstop=4 tabstop=4 shiftwidth=4
" Thorfile, Rakefile, Vagrantfile and Gemfile are Ruby
au BufRead,BufNewFile {Gemfile,Rakefile,Vagrantfile,Thorfile,config.ru} set ft=ruby
" add json syntax highlighting
au BufNewFile,BufRead *.json set ft=javascript
" make Python follow PEP8 ( http://www.python.org/dev/peps/pep-0008/ )
au FileType python set softtabstop=4 tabstop=4 shiftwidth=4 textwidth=79
" ctrp custom ignores
let g:ctrlp_custom_ignore = {
\ 'dir': '\.git$\|\.hg$\|\.svn$\|\.eunit$',
\ 'file': '\.exe$\|\.so$\|\.dll\|\.beam$\|\.DS_Store$'
\ }
let g:erlangCheckFile = "~/.vim/bundle/vimerl/compiler/erlang_check_file.erl"
let g:erlangHighlightErrors = 1
" Use Ag instead of Ack
let g:ackprg = 'ag --nogroup --nocolor --column'
" Disable Swap and Backup Files
set noswapfile
set nobackup
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