Initial commit
This will probably the only commit with an intelligible description.
This commit is contained in:
commit
1471257fd1
72
Xresources
Normal file
72
Xresources
Normal file
|
@ -0,0 +1,72 @@
|
|||
Xft.dpi: 96
|
||||
Xft.antialias: true
|
||||
Xft.hinting: true
|
||||
Xft.rgba: rgb
|
||||
Xft.autohint: false
|
||||
Xft.hintstyle: hintslight
|
||||
Xft.lcdfilter: lcddefault
|
||||
|
||||
! Terminal colors
|
||||
! https://raw.githubusercontent.com/solarized/xresources/master/Xresources.dark
|
||||
|
||||
#define S_base03 #002b36
|
||||
#define S_base02 #073642
|
||||
#define S_base01 #586e75
|
||||
#define S_base00 #657b83
|
||||
#define S_base0 #839496
|
||||
#define S_base1 #93a1a1
|
||||
#define S_base2 #eee8d5
|
||||
#define S_base3 #fdf6e3
|
||||
|
||||
*background: S_base03
|
||||
*foreground: S_base0
|
||||
*fadeColor: S_base03
|
||||
*cursorColor: S_base1
|
||||
*pointerColorBackground:S_base01
|
||||
*pointerColorForeground:S_base1
|
||||
|
||||
#define S_yellow #b58900
|
||||
#define S_orange #cb4b16
|
||||
#define S_red #dc322f
|
||||
#define S_magenta #d33682
|
||||
#define S_violet #6c71c4
|
||||
#define S_blue #268bd2
|
||||
#define S_cyan #2aa198
|
||||
#define S_green #859900
|
||||
|
||||
!! black dark/light
|
||||
*color0: S_base02
|
||||
*color8: S_base03
|
||||
|
||||
!! red dark/light
|
||||
*color1: S_red
|
||||
*color9: S_orange
|
||||
|
||||
!! green dark/light
|
||||
*color2: S_green
|
||||
*color10: S_base01
|
||||
|
||||
!! yellow dark/light
|
||||
*color3: S_yellow
|
||||
*color11: S_base00
|
||||
|
||||
!! blue dark/light
|
||||
*color4: S_blue
|
||||
*color12: S_base0
|
||||
|
||||
!! magenta dark/light
|
||||
*color5: S_magenta
|
||||
*color13: S_violet
|
||||
|
||||
!! cyan dark/light
|
||||
*color6: S_cyan
|
||||
*color14: S_base1
|
||||
|
||||
!! white dark/light
|
||||
*color7: S_base2
|
||||
*color15: S_base3
|
||||
|
||||
XTerm*faceSize: 12
|
||||
UXTerm*faceSize: 12
|
||||
XTerm*faceName: "Source Code Pro for Powerline" monospace
|
||||
UXTerm*faceName: "Source Code Pro for Powerline" monospace
|
209
vimrc
Normal file
209
vimrc
Normal file
|
@ -0,0 +1,209 @@
|
|||
" VIM Configuration - Geoffrey FROGEYE
|
||||
"
|
||||
|
||||
set nocompatible
|
||||
filetype off
|
||||
|
||||
""" PLUGINS MANAGEMENT """
|
||||
" Voir :h vundle
|
||||
|
||||
set rtp+=~/.vim/bundle/Vundle.vim
|
||||
call vundle#begin()
|
||||
Plugin 'gmarik/Vundle.vim'
|
||||
|
||||
Plugin 'L9'
|
||||
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
|
||||
Plugin 'altercation/vim-colors-solarized'
|
||||
Bundle 'Shougo/neocomplete'
|
||||
Bundle 'Shougo/neosnippet'
|
||||
Bundle 'Shougo/neosnippet-snippets'
|
||||
Plugin 'tpope/vim-surround'
|
||||
Plugin 'tpope/vim-fugitive'
|
||||
Plugin 'tpope/vim-repeat'
|
||||
Plugin 'scrooloose/syntastic'
|
||||
Plugin 'terryma/vim-multiple-cursors'
|
||||
Plugin 'bling/vim-airline'
|
||||
Plugin 'airblade/vim-gitgutter'
|
||||
Plugin 'kien/ctrlp.vim'
|
||||
|
||||
call vundle#end() " required
|
||||
filetype plugin indent on " required
|
||||
|
||||
""" CTRLP """
|
||||
|
||||
let g:ctrlp_custom_ignore = {
|
||||
\ 'dir': '\v([\/]\.(git|hg|svn)|node_modules|bower_components|__pycache__|vendor)$',
|
||||
\ 'file': '\v\.(exe|so|dll)$',
|
||||
\ 'link': 'SOME_BAD_SYMBOLIC_LINKS',
|
||||
\ }
|
||||
|
||||
""" NEOCOMPLETE """
|
||||
|
||||
"Note: This option must set it in .vimrc(_vimrc). NOT IN .gvimrc(_gvimrc)!
|
||||
" Disable AutoComplPop.
|
||||
let g:acp_enableAtStartup = 0
|
||||
" Use neocomplete.
|
||||
let g:neocomplete#enable_at_startup = 1
|
||||
" Use smartcase.
|
||||
let g:neocomplete#enable_smart_case = 1
|
||||
" Set minimum syntax keyword length.
|
||||
let g:neocomplete#sources#syntax#min_keyword_length = 3
|
||||
let g:neocomplete#lock_buffer_name_pattern = '\*ku\*'
|
||||
|
||||
" Define dictionary.
|
||||
let g:neocomplete#sources#dictionary#dictionaries = {
|
||||
\ 'default' : '',
|
||||
\ 'vimshell' : $HOME.'/.vimshell_hist',
|
||||
\ 'scheme' : $HOME.'/.gosh_completions'
|
||||
\ }
|
||||
|
||||
" Define keyword.
|
||||
if !exists('g:neocomplete#keyword_patterns')
|
||||
let g:neocomplete#keyword_patterns = {}
|
||||
endif
|
||||
let g:neocomplete#keyword_patterns['default'] = '\h\w*'
|
||||
|
||||
" Plugin key-mappings.
|
||||
inoremap <expr><C-g> neocomplete#undo_completion()
|
||||
inoremap <expr><C-l> neocomplete#complete_common_string()
|
||||
|
||||
" Recommended key-mappings.
|
||||
" <CR>: close popup and save indent.
|
||||
inoremap <silent> <CR> <C-r>=<SID>my_cr_function()<CR>
|
||||
function! s:my_cr_function()
|
||||
return neocomplete#close_popup() . "\<CR>"
|
||||
" For no inserting <CR> key.
|
||||
"return pumvisible() ? neocomplete#close_popup() : "\<CR>"
|
||||
endfunction
|
||||
" <TAB>: completion.
|
||||
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
|
||||
" <C-h>, <BS>: close popup and delete backword char.
|
||||
inoremap <expr><C-h> neocomplete#smart_close_popup()."\<C-h>"
|
||||
inoremap <expr><BS> neocomplete#smart_close_popup()."\<C-h>"
|
||||
inoremap <expr><C-y> neocomplete#close_popup()
|
||||
inoremap <expr><C-e> neocomplete#cancel_popup()
|
||||
" Close popup by <Space>.
|
||||
"inoremap <expr><Space> pumvisible() ? neocomplete#close_popup() : "\<Space>"
|
||||
|
||||
" For cursor moving in insert mode(Not recommended)
|
||||
"inoremap <expr><Left> neocomplete#close_popup() . "\<Left>"
|
||||
"inoremap <expr><Right> neocomplete#close_popup() . "\<Right>"
|
||||
"inoremap <expr><Up> neocomplete#close_popup() . "\<Up>"
|
||||
"inoremap <expr><Down> neocomplete#close_popup() . "\<Down>"
|
||||
" Or set this.
|
||||
"let g:neocomplete#enable_cursor_hold_i = 1
|
||||
" Or set this.
|
||||
"let g:neocomplete#enable_insert_char_pre = 1
|
||||
|
||||
" AutoComplPop like behavior.
|
||||
"let g:neocomplete#enable_auto_select = 1
|
||||
|
||||
" Shell like behavior(not recommended).
|
||||
"set completeopt+=longest
|
||||
"let g:neocomplete#enable_auto_select = 1
|
||||
"let g:neocomplete#disable_auto_complete = 1
|
||||
"inoremap <expr><TAB> pumvisible() ? "\<Down>" : "\<C-x>\<C-u>"
|
||||
|
||||
" Enable omni completion.
|
||||
autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS
|
||||
autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags
|
||||
autocmd FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS
|
||||
autocmd FileType python setlocal omnifunc=pythoncomplete#Complete
|
||||
autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags
|
||||
|
||||
" Enable heavy omni completion.
|
||||
if !exists('g:neocomplete#sources#omni#input_patterns')
|
||||
let g:neocomplete#sources#omni#input_patterns = {}
|
||||
endif
|
||||
"let g:neocomplete#sources#omni#input_patterns.php = '[^. \t]->\h\w*\|\h\w*::'
|
||||
"let g:neocomplete#sources#omni#input_patterns.c = '[^.[:digit:] *\t]\%(\.\|->\)'
|
||||
"let g:neocomplete#sources#omni#input_patterns.cpp = '[^.[:digit:] *\t]\%(\.\|->\)\|\h\w*::'
|
||||
|
||||
" For perlomni.vim setting.
|
||||
" https://github.com/c9s/perlomni.vim
|
||||
let g:neocomplete#sources#omni#input_patterns.perl = '\h\w*->\h\w*\|\h\w*::'
|
||||
|
||||
""" SYNTASTIC """
|
||||
|
||||
set statusline+=%#warningmsg#
|
||||
set statusline+=%{syntasticstatuslineflag()}
|
||||
set statusline+=%*
|
||||
|
||||
let g:syntastic_always_populate_loc_list = 0
|
||||
let g:syntastic_auto_loc_list = 0
|
||||
let g:syntastic_check_on_open = 1
|
||||
let g:syntastic_check_on_wq = 0
|
||||
|
||||
""" VIM-MULTIPLE-CURSORS """
|
||||
|
||||
let g:multi_cursor_use_default_mapping=0
|
||||
" Default mapping
|
||||
let g:multi_cursor_next_key='<C-n>'
|
||||
let g:multi_cursor_prev_key='<C-p>'
|
||||
let g:multi_cursor_skip_key='<C-x>'
|
||||
|
||||
let g:multi_cursor_quit_key='<Esc>'
|
||||
" Map start key separately from next key
|
||||
let g:multi_cursor_start_key='<F6>'
|
||||
let g:multi_cursor_start_key='<C-n>'
|
||||
let g:multi_cursor_start_word_key='g<C-n>'
|
||||
|
||||
""" VIM-AIRLINE """
|
||||
|
||||
set noshowmode
|
||||
set laststatus=2
|
||||
let g:airline_powerline_fonts = 1
|
||||
let g:airline#extensions#syntastic#enabled = 1
|
||||
let g:airline#extensions#tabline#enabled = 1
|
||||
|
||||
let g:airline_section_a = airline#section#create(['mode'])
|
||||
let g:airline_section_b = airline#section#create(['branch', 'hunks'])
|
||||
let g:airline_section_z = airline#section#create(['%B', '@', '%l', ':', '%c'])
|
||||
|
||||
""" VIM SETTINGS """
|
||||
|
||||
set encoding=utf-8
|
||||
set title
|
||||
|
||||
set number
|
||||
set ruler
|
||||
set wrap
|
||||
|
||||
set scrolloff=5
|
||||
|
||||
set ignorecase
|
||||
set smartcase
|
||||
|
||||
set incsearch
|
||||
|
||||
set hlsearch
|
||||
|
||||
set visualbell
|
||||
set noerrorbells
|
||||
|
||||
set backspace=indent,eol,start
|
||||
|
||||
set hidden
|
||||
|
||||
syntax enable
|
||||
|
||||
set background=dark
|
||||
colorscheme solarized
|
||||
set t_Co=256
|
||||
|
||||
filetype on
|
||||
filetype plugin on
|
||||
filetype indent on
|
||||
|
||||
map <up> <nop>
|
||||
map <down> <nop>
|
||||
map <left> <nop>
|
||||
map <right> <nop>
|
||||
imap <up> <nop>
|
||||
imap <down> <nop>
|
||||
imap <left> <nop>
|
||||
imap <right> <nop>
|
||||
map ;; <Esc>
|
||||
imap ;; <Esc>
|
||||
map <Enter> o<Esc>
|
||||
|
17
xinitrc
Normal file
17
xinitrc
Normal file
|
@ -0,0 +1,17 @@
|
|||
|
||||
#!/bin/sh
|
||||
|
||||
#
|
||||
# ~/.xinitrc
|
||||
#
|
||||
# Executed by startx (run your window manager from here)
|
||||
#
|
||||
|
||||
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
|
||||
|
||||
DEFAULT_SESSION=i3
|
||||
case $1 in
|
||||
xfce) exec dbus-launch xfce4-session ;;
|
||||
i3) exec dbus-launch i3 ;;
|
||||
*) exec dbus-launch $DEFAULT_SESSION ;;
|
||||
esac
|
Loading…
Reference in a new issue