This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if &readonly | |
nnoremap <CR> <C-]> | |
nnoremap <BS> <C-O> | |
nnoremap <Down> /\('\<bar><bar>\)[^, <bar>]\{-1,}\1<CR>:nohl<cr> | |
nnoremap <Up> ?\('\<bar><bar>\)[^, <bar>]\{-1,}\1<CR>:nohl<cr> | |
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun ToggleHex() | |
if (!exists("b:is_hex")) | |
let b:is_hex = 1 | |
endif | |
if b:is_hex | |
exe '%!xxd -r' | |
let b:is_hex = 0 | |
else | |
exe '%!xxd' | |
let b:is_hex = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Mode indication {{{ | |
function zle-line-init zle-keymap-select { | |
RPS1="%B${${KEYMAP/vicmd/n}/(main|viins)/i}%b" | |
RPS2=$RPS1 | |
zle reset-prompt | |
} | |
zle -N zle-line-init | |
zle -N zle-keymap-select | |
setopt transient_rprompt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nnoremap <F2> :call MyNerdTreeToggle()<CR> | |
function! MyNerdTreeToggle() | |
NERDTreeToggle | |
if bufname('NERD_tree') != "" | |
call setwinvar(bufwinnr('NERD_tree'), '&list', 0) | |
endif | |
endfunction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -z $TMUX ]; then | |
export TERM="xterm-256color" | |
else | |
export TERM="screen-256color" | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
my $cwd = $ENV{'PWD'}; | |
my $home = $ENV{'HOME'}; | |
if ($cwd eq $home) { | |
print '~'; exit; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/gui/curses/gui-curses-key.c b/src/gui/curses/gui-curses-key.c | |
index 92393ac..db1fe59 100644 | |
--- a/src/gui/curses/gui-curses-key.c | |
+++ b/src/gui/curses/gui-curses-key.c | |
@@ -487,7 +487,7 @@ gui_key_flush (int paste) | |
int | |
gui_key_read_cb (void *data, int fd) | |
{ | |
- int ret, i, accept_paste, cancel_paste, text_added_to_buffer, pos; | |
+ int ret, i, accept_paste, cancel_paste, replace_paste, text_added_to_buffer, pos; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if neocomplcache#sources#snippets_complete#jumpable() | |
imap <expr><C-j> "\<Plug>(neocomplcache_snippets_jump)" | |
imap <expr><C-k> "\<Plug>(neocomplcache_snippets_jump)" | |
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; IMPORTANT INFO ABOUT GETTING STARTED: Lines that start with a | |
; semicolon, such as this one, are comments. They are not executed. | |
; This script has a special filename and path because it is automatically | |
; launched when you run the program directly. Also, any text file whose | |
; name ends in .ahk is associated with the program, which means that it | |
; can be launched simply by double-clicking it. You can have as many .ahk | |
; files as you want, located in any folder. You can also run more than | |
; one .ahk file simultaneously and each will get its own tray icon. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! HasSyntaxFolding() | |
redir => foo | |
silent syntax | |
redir END | |
return match(foo, '\<fold\>') == -1 ? 0 : 1 | |
endfunction |
OlderNewer