nextfile : open the next or previous file
script karma |
Rating 7/5,
Downloaded by 2143 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
tyru |
|
script type |
utility |
|
description |
Usage:
COMMANDS:
:NFLoadGlob
load globbed files.
this command just load files to buffers, does not edit them.
options do NOT influence globbed file's list.
:NFLoadGlob * " to load all files in current directory.
:NFLoadGlob .* " to load all dotfiles in current directory.
MAPPING:
default:
<Leader>n - open the next file
<Leader>p - open the previous file
GLOBAL VARIABLES:
g:nf_map_next (default: '<Leader>n')
open the next file.
g:nf_map_previous (default: '<Leader>p')
open the previous file.
g:nf_include_dotfiles (default: 0)
if true, open the next dotfile.
if false, skip the next dotfile.
g:nf_open_command (default: 'edit')
open the (next|previous) file with this command.
g:nf_loop_files (default: 0)
if true, loop when reached the end.
g:nf_ignore_dir (default: 1)
if true, skip directory.
g:nf_ignore_ext (default: [])
ignore files of these extensions.
e.g.: "o", "obj", "exe"
g:nf_disable_if_empty_name (default: 0)
do not run mapping if current file name is empty.
behave like old version if this is true.
g:nf_commands (default: see below)
command's names.
if you do not want to define some commands,
please leave '' in command's value.
e.g.: let g:nf_commands = {'NFLoadGlob': ''}
default value:
let g:nf_commands = {
\ 'NFLoadGlob' : 'NFLoadGlob',
\ }
g:nf_sort_funcref (default: '<SID>sort_compare')
function string or Funcref passed to sort().
default function's definition:
func! s:sort_compare(i, j)
" alphabetically
return a:i > a:j
endfunc |
|
install details |
move into your ~/.vim/plugin |
|
script versions (upload new version)
Click on the package to download.
nextfile.vim |
0.0.3 |
2009-11-18 |
7.0 |
tyru |
- fix edge case bug
- add command :NFLoadGlob
- mappings support range
('10<Leader>n' opens a file which is 10 files away from current file.
'10<Leader>p' is reverse sequence)
- add options g:nf_disable_if_empty_name, g:nf_sort_funcref, g:nf_commands
- etc. |
nextfile.vim |
0.0.2 |
2009-06-09 |
6.0 |
tyru |
implement g:nf_ignore_ext. |
nextfile.vim |
0.0.1 |
2009-04-10 |
6.0 |
tyru |
add g:nf_ignore_dir |
nextfile.vim |
0.0.0 |
2009-04-09 |
6.0 |
tyru |
Initial upload |
ip used for rating: 142.132.191.50
|